package com.lagou.sqlSession;

import com.lagou.pojo.Configuration;
import com.lagou.pojo.MappedStatement;

import java.util.List;

public interface Executor {


    public <E> List<E> query(Configuration configuration,MappedStatement mappedStatement,Object... params) throws Exception;

    /**
     * ***根据结果集类型来定义的返回值***
     *
     * 执行增删改
     *
     * */
    public Integer doExecute(Configuration configuration,MappedStatement mappedStatement,Object... params) throws Exception;


}
